﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;

namespace ReferralTracker.Data.Entities.Configurations {
    public class ReferralConfiguration : EntityTypeConfiguration<Referral> {

        public ReferralConfiguration() {
            HasRequired(r => r.User)
                .WithMany(u => u.Referrals)
                .Map(x => x.MapKey("IdUser"));
        }
    }
}
